package com.cddx.logistics.domain.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "物料转移记录")
public class TransferRecord {
    /**
     * 序号
     */
    @NotNull(message="[序号]不能为空")
    @ApiModelProperty("序号")
    private Integer id;
    /**
     * 转移前的库位id
     */
    @ApiModelProperty("转移前的库位id")
    private Long locationPreId;
    /**
     * 转移后的库位id
     */
    @ApiModelProperty("转移后的库位id")
    private Long locationAfterId;
    /**
     * 物料id
     */
    @ApiModelProperty("物料id")
    private Long materialId;
    /**
     * 记录时间
     */
//    @ApiModelProperty("记录时间")
//    private Date transferTime;
    /**
     * 数量
     */
    @ApiModelProperty("数量")
    private float quantity;
}
